package com.dq.health.enums;

/**
 * <处方单状态>
 *
 * @Author: chenxin
 * @Date: 2021/5/12
 */
public enum PrescriptionStatusEnum {

    WAIT(0, "未处理"),

    DEAL_WITH(1, "已处理"),

    DELETE(2, "已删除");

    private int value;

    private String desc;

    PrescriptionStatusEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public int value() {
        return value;
    }

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static PrescriptionStatusEnum parse(int value) {
        for (PrescriptionStatusEnum e : PrescriptionStatusEnum.values()) {
            if (e.getValue() == value) {
                return e;
            }
        }
        return null;
    }

}
